import request from '@/utils/request'

// 查询结算列列表
export function listSettlement(query) {
  return request({
    url: '/mahjong/settlement/list',
    method: 'get',
    params: query
  })
}
// 查询店铺桌子信息
export function getShopTableInfo() {
  return request({
    url: '/mahjong/myshops/controlList',
    method: 'get'

  })
}
// 查询结算列详细
export function getSettlement(id) {
  return request({
    url: '/mahjong/settlement/' + id,
    method: 'get'
  })
}

// 新增结算列
export function addSettlement(data) {
  return request({
    url: '/mahjong/settlement',
    method: 'post',
    data: data
  })
}

// 修改结算列
export function updateSettlement(data) {
  return request({
    url: '/mahjong/settlement',
    method: 'put',
    data: data
  })
}

// 删除结算列
export function delSettlement(id) {
  return request({
    url: '/mahjong/settlement/' + id,
    method: 'delete'
  })
}

// 导出结算列
export function exportSettlement(query) {
  return request({
    url: '/mahjong/settlement/export',
    method: 'get',
    params: query
  })
}

